﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace eStore.UserControl
{
    public partial class DisplayMessage : System.Web.UI.UserControl
    {
        private string _LangStore;
        public string LangStore
        {
            set
            {
                _LangStore = value;
            }
        }
         
        private string _Header;
        public string Header
        {
            set
            {
                _Header = value;
            }
        }
        private string _Message;
        public string Message
        {
            set
            {
                _Message = value;
            }
        }
        private string _DetailsHeader;
        public string DetailsHeader
        {
            set
            {
                _DetailsHeader = value;
            }
        }
        private string _ButtonBack;
        public string ButtonBack
        {
            set
            {
                _ButtonBack = value;
            }
        }
        
        private string _DetailsText;
        public string DetailsText
        {
            set
            {
                _DetailsText = value;
            }
        }
        private string _UrlBack;
        public string UrlBack
        {
            set
            {
                _UrlBack = value;
            }
        }
        
        
        protected void Page_Load(object sender, EventArgs e)
        {
            h2Header.InnerText =(string)GetGlobalResourceObject(_LangStore,_Header);
            pMessage.InnerText = (string)GetGlobalResourceObject(_LangStore, _Message); 
            LegendDetailsHeader.InnerText = (string)GetGlobalResourceObject(_LangStore,_DetailsHeader); 
            pDetailsText.InnerHtml = (string)GetGlobalResourceObject(_LangStore,_DetailsText);
            btnBack.Text = (string)GetGlobalResourceObject(_LangStore, _ButtonBack);
            btnBack.PostBackUrl = _UrlBack;
        }
    }
}